/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Race Pacific Island Polynesian</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * specDomain: S15788 (C-0-T14914-S15787-S15788-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getRacePacificIslandPolynesian()
 * @model extendedMetaData="name='RacePacificIslandPolynesian'"
 * @generated
 */
public enum RacePacificIslandPolynesian implements Enumerator {
	/**
	 * The '<em><b>20784</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_20784_VALUE
	 * @generated
	 * @ordered
	 */
	_20784(0, "_20784", "2078-4"),

	/**
	 * The '<em><b>20792</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_20792_VALUE
	 * @generated
	 * @ordered
	 */
	_20792(1, "_20792", "2079-2"),

	/**
	 * The '<em><b>20800</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_20800_VALUE
	 * @generated
	 * @ordered
	 */
	_20800(2, "_20800", "2080-0"),

	/**
	 * The '<em><b>20818</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_20818_VALUE
	 * @generated
	 * @ordered
	 */
	_20818(3, "_20818", "2081-8"),

	/**
	 * The '<em><b>20834</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_20834_VALUE
	 * @generated
	 * @ordered
	 */
	_20834(4, "_20834", "2083-4"),

	/**
	 * The '<em><b>20826</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_20826_VALUE
	 * @generated
	 * @ordered
	 */
	_20826(5, "_20826", "2082-6");

	/**
	 * The '<em><b>20784</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>20784</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_20784
	 * @model literal="2078-4"
	 * @generated
	 * @ordered
	 */
	public static final int _20784_VALUE = 0;

	/**
	 * The '<em><b>20792</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>20792</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_20792
	 * @model literal="2079-2"
	 * @generated
	 * @ordered
	 */
	public static final int _20792_VALUE = 1;

	/**
	 * The '<em><b>20800</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>20800</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_20800
	 * @model literal="2080-0"
	 * @generated
	 * @ordered
	 */
	public static final int _20800_VALUE = 2;

	/**
	 * The '<em><b>20818</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>20818</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_20818
	 * @model literal="2081-8"
	 * @generated
	 * @ordered
	 */
	public static final int _20818_VALUE = 3;

	/**
	 * The '<em><b>20834</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>20834</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_20834
	 * @model literal="2083-4"
	 * @generated
	 * @ordered
	 */
	public static final int _20834_VALUE = 4;

	/**
	 * The '<em><b>20826</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>20826</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_20826
	 * @model literal="2082-6"
	 * @generated
	 * @ordered
	 */
	public static final int _20826_VALUE = 5;

	/**
	 * An array of all the '<em><b>Race Pacific Island Polynesian</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final RacePacificIslandPolynesian[] VALUES_ARRAY =
		new RacePacificIslandPolynesian[] {
			_20784,
			_20792,
			_20800,
			_20818,
			_20834,
			_20826,
		};

	/**
	 * A public read-only list of all the '<em><b>Race Pacific Island Polynesian</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<RacePacificIslandPolynesian> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Race Pacific Island Polynesian</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RacePacificIslandPolynesian get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RacePacificIslandPolynesian result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Race Pacific Island Polynesian</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RacePacificIslandPolynesian getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RacePacificIslandPolynesian result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Race Pacific Island Polynesian</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RacePacificIslandPolynesian get(int value) {
		switch (value) {
			case _20784_VALUE: return _20784;
			case _20792_VALUE: return _20792;
			case _20800_VALUE: return _20800;
			case _20818_VALUE: return _20818;
			case _20834_VALUE: return _20834;
			case _20826_VALUE: return _20826;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private RacePacificIslandPolynesian(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //RacePacificIslandPolynesian
